﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using Xyz.DataObjects;
using Xyz.DataObjects.Interfaces;
using Xyz.Service.DataTransferObjects;
using Xyz.Service.ServiceContracts;

namespace Xyz.Service
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
    public class CountryService : ICountryService
    {
        public static readonly ICountryDao CountryDao = DataAccess.CountryDao;

        public List<CountryDTO> GetAllCountries()
        {
            return Mapper.ToDto(CountryDao.GetAllCountries());
        }
    }
}
